package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author zhengmf
 * @Date 2019/1/3  15:27
 */
@ApiModel("保存用户托管信息参数")
public class SaveUserTrusteeshipEvt implements Serializable {
    private static final long serialVersionUID = 8713721527978087090L;
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("代理人ID")
    @NotEmpty
    private List<Long> trusId;
    @ApiModelProperty("托管开始时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty("托管结束时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty("托管类型")
    @NotBlank
    private String trusType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<Long> getTrusId() {
        return trusId;
    }

    public void setTrusId(List<Long> trusId) {
        this.trusId = trusId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getTrusType() {
        return trusType;
    }

    public void setTrusType(String trusType) {
        this.trusType = trusType;
    }

    @Override
    public String toString() {
        return "SaveUserTrusteeshipEvt{" +
            "id=" + id +
            ", trusId=" + trusId +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", trusType='" + trusType + '\'' +
            '}';
    }
}
